Linux_ADDR=/home/chenbao/work/linux_3.5/linux-3.5
app:
	# make -C $(Linux_ADDR) M=`pwd` modules
	# cp *.ko /home/chenbao/work/rootfs/work -vf
	# make -C $(Linux_ADDR) M=`pwd` modules clean
	arm-linux-gcc app.c yuv_to_jpeg.c ascii.c -o app -ljpeg -lpng -lfreetype -lpthread
	cp app /home/chenbao/work/rootfs/work -vf
	rm app 
# obj-m+=key_interrupt_2.o
#obj-m+=key_drv.o
clean:
	make -C $(Linux_ADDR) M=`pwd` modules clean
	rm app
